package com.usns.user;

import weibo4j.Weibo;
import weibo4j.http.AccessToken;

public class User {
	private AccessToken sina_token;
	private int login_method = User.SINA;
	
	static public int SINA = 1;
	static public int TENCENT = 2;
	static public int RENREN = 3;
	
	static User instance = null;
	
	private User(){
		
	}
	
	static public User getInstance(){
		if(instance == null){
			instance = new User();
		}
		return instance;
	}
	
	public void setSinaToken(AccessToken sina_token){
		this.sina_token = sina_token;
		Weibo weibo = new Weibo();
		weibo.setToken(sina_token.toString());
	}

	public AccessToken getSinaToken() {
		return sina_token;
	}
	
	public void setLoginMethod(int method){
		this.login_method = method;
	}
	
	public int getLoginMethod(){
		return this.login_method;
	}
}
